<template>
  <div>
  <div class="box">
    {{title}} 新闻详情

    <p>今天是{{classRoom}}日, 新闻数量是 {{count}} </p>
  </div>
  </div>
</template>

<script>
export default {
  name: "NewsDetail",
  mounted() {
    console.log(this);
  },
  /*  computed: {
    title() {
      return this.$route.query.title;
    },
  }, */
  // 接受props参数 
  props:['title',"classRoom", "count"]
};
</script>

<style scoped>
.box{
  background-color: #34495e;  
  color: #f5f6f7;
  font-size: 20px;
  text-align: center;
  height: 100px;
  margin-top: 20px;
}
</style>
